package com.apes.framework.jpa.logger;


import com.apes.framework.jpa.repository.CustomRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;


/**
 * @author xul
 * @create 2018-07-26 10:09
 */
public interface ApesLoggerRepository extends CustomRepository<ApesLogger, Long> {

    List<ApesLogger> findAllByBusinessKeyAndAndBusinessTypeOrderByBusinessDateDesc(String businessKey, String businessType);

    List<ApesLogger> findAllByBusinessKeyAndBusinessTypeAndOaFlagAndRemarkIsNotNullOrderByCreateDateAsc(String businessKey, String businessType,Boolean oaFlag);

    List<ApesLogger> findByBusinessKeyAndOperateLike(String businessKey, String operate);

}
